<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>现场回报</title>
    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css"/>
    <link rel="stylesheet" href="../../../css/wx/style.css"/>

    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/wdbg/wdbj"]
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>

    <style>

        p {
            margin-bottom: 0;
        }

        .returnCont {
            top: 10%;
            left: 5%;
            right: 5%;
        }

        .mui-scroll-wrapper .mui-table-view-cell {
            padding: 0
        }

        .mui-scroll-wrapper .mui-table-view {
            background: none;
        }

        .mui-scroll-wrapper .mui-table-view:before, .mui-scroll-wrapper .mui-table-view:after {
            height: 0;
        }

        .footBtn .mui-checkbox {
            background: #fff;
            line-height: 50px;
        }

        .footBtn .mui-checkbox input {
            top: -5px;
            left: 15px !important;
        }

        .mui-scroll-wrapper .mui-card-header .mui-checkbox.mui-left label {
            padding-left: 22px;
            font-size: 13px;
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-card {
            margin: 10px 10px 0 10px;
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-row .mui-col-xs-9 {
            padding-left: 15px;
            position: relative;
        }

        .mui-table-view-cell:after {
            height: 0
        }
    </style>
</head>

<body>
<div class="mui-content">
    <!--搜索-->
    <div class="mui-content">
        <div id="searchDiv" class="mui-input-row searchBox">
            <form action="javascript:app.returnFalse();">
                <i class="mui-icon mui-icon-search"></i>
                <input @search="toSearch" type="search" class="mui-input-clear" placeholder="物料名称|物料编号"
                       v-model.trim="keyword">
            </form>
        </div>
    </div>
    <!--列表-->
    <div id="scroll" class="mui-scroll-wrapper" style="top: 55px;">
        <div class="mui-scroll">
            <wdbj-listitem :model="items"></wdbj-listitem>
        </div>
    </div>
    <div class="footBtn flexl shadow2">
        <button type="button" class="puliColor_bg edit" id="btn_bjsq">确定</button>
    </div>

</div>
<script id="item-template" type="text/x-template">
    <ul class="mui-table-view">
        <li v-for="item in model" class="mui-table-view-cell">
            <div class="mui-card">
                <div class="mui-card-header">
                    <div class="mui-checkbox mui-left" style="flex: 1 1 0%;">
                        <label>物料编号:{{item.MMRS004}}</label>
                        <input type="checkbox" v-model="item.checked" style="left: -5px;top: 0;"/>
                    </div>
                </div>
                <div class="mui-card-content">
                    <div class="mui-card-content-inner">
                        <div class="mui-row">
                            <div class="mui-col-xs-7">
                                <p><span>物料名称：</span>{{item.GWAML003}}</p>
                                <p><span>价格：</span>{{item.MMRS009}}</p>
                                <p><span>库存：</span>{{item.MMRS008}}/{{item.MMRS006|goodsUnits}}</p>
                            </div>

                            <div class="mui-col-xs-5" style="text-align: right;">
                                <div class="mui-numbox" data-numbox-step='1' data-numbox-min='1'
                                     :data-numbox-max='item.MMRS008'>
                                    <button @tap.stop="minus(item)" class="mui-btn mui-numbox-btn-minus" type="button">
                                        -
                                    </button>
                                    <input v-model="item.MMRH004" class="mui-numbox-input" type="number"/>
                                    <button @tap.stop="plus(item)" class="mui-btn mui-numbox-btn-plus" type="button">+
                                    </button>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </li>
    </ul>
</script>

</body>
</html>